﻿/********************************************************************************
** @ Date:2025/08/01
** @ Author: Gaojia
** @ Description: 皮带撕裂检测 工作线程类
** @ Version:1.0.0
** @ Fun:
********************************************************************************/
#ifndef CBeltWorkBase_H
#define CBeltWorkBase_H
#include "CBeltDataBase.h"
#include <qobject.h>
#include <QThread>
class CBeltWorkBase :
	public QObject
{
	Q_OBJECT
public:
	CBeltWorkBase(CBeltDataBase *pBeltData);
	~CBeltWorkBase();
	void threadStart();
	void threadStop();
private:
	void beltTearExec();        //皮带撕裂检测函数
	bool beltIsCheck();         //判断皮带是否需要检测
private:
	QThread  *m_pThread;        //工作线程
	bool      m_bhread;         //线程状态
	CBeltDataBase *m_pBeltData;
private slots:
	void slot_threadWork();
};

#endif